care for the posssibility that someone destroys the entry on the
authorTim Janik <timj@gtk.org>
Fri, 17 Jul 1998 03:56:13 +0000 (03:56 +0000)
committerTim Janik <timj@src.gnome.org>
Fri, 17 Jul 1998 03:56:13 +0000 (03:56 +0000)
Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
        someone destroys the entry on the ::activate signal.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentry.c

index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 094afee65b453467905d70302ec8ac68bfe88452..4d3dbd938e8154e909849e2aae635c218a64cf82 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
+       someone destroys the entry on the ::activate signal.
+
 Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
index 01dfffa9ecbe60f263dba1f09281574e5e9977a6..8ca9a9e7889949ee4fbd0b977e607dfae9bbae3c 100644 (file)
@@ -1131,7 +1131,12 @@ gtk_entry_key_press (GtkWidget   *widget,
       break;
     }
 
-  if (return_val && (editable->current_pos != initial_pos))
+  /* since we emit signals from within the above code,
+   * the widget might already be destroyed or at least
+   * unrealized.
+   */
+  if (GTK_WIDGET_REALIZED (editable) &&
+      return_val && (editable->current_pos != initial_pos))
     {
       if (extend_selection)
        {